# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=poedit
pkgver=2.4.1
pkgrel=0
pkgdesc="A cross-platform translations editor"
url="https://www.poedit.net"
arch="all"
license="MIT"
depends="gettext"
makedepends="boost-dev enchant2-dev gtk+3.0-dev gtkspell3-dev
	lucene++-dev wxgtk3-dev autoconf automake libtool pugixml-dev
	gettext-dev"
subpackages="$pkgname-lang $pkgname-doc"
source="https://github.com/vslavik/poedit/archive/v$pkgver-oss.tar.gz"
builddir="$srcdir/$pkgname-$pkgver-oss"

prepare() {
	default_prepare

	./bootstrap
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-wx-config=wx-config-gtk3
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="5d58756aa4ed4912dae8a942c08010b7a29298a1768fabf43ffe52c847c6a7b5aa7638012a16608f7243ffb0aa8b39f0218212e8d4ce9a4797a5e694899915ea  v2.4.1-oss.tar.gz"
